package net.app.zoneland.platform.api.feign;

import net.app.zoneland.common.core.vo.Result;
import net.app.zoneland.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description
 * @Author LENOVO
 * @CreateTime 2020/12/20 14:02
 * @Version: 1.0
 */
@FeignClient("youlai-admin")
public interface RemoteUserService {

    /**
     * 根据用户名获取用户详情
     * @param username
     * @return
     */
    @GetMapping("/users/user/{username}")
    Result<UserDTO> loadUserByUsername(@PathVariable String username);

}
